import requests from '@/api/request'
const SERVER_URL = ''
export default {
  // 查询
  postQueryByCondition (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/backend/recommend/style/queryByCondition`,
      method: 'post',
      data
    })
  },
  // 新增海报
  postAdd (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/backend/recommend/style/add`,
      method: 'post',
      data
    })
  },
  // 编辑海报
  putEdit (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/backend/recommend/style/edit`,
      method: 'put',
      data
    })
  },
  // 删除海报
  deletePoster (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/backend/recommend/style/delete/${data}`,
      method: 'delete'
    })
  },
  // 启用
  postOpen (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/backend/recommend/style/open/${data}`,
      method: 'get'
    })
  },
  // 停用
  postClose (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/backend/recommend/style/close/${data}`,
      method: 'get'
    })
  }
}
